<template>
  <div>children1
    <!-- <el-button>Default</el-button> -->
    <el-button @click="changeMitt">触发mitt</el-button>
  </div>
</template>

<script lang='ts' setup>
import { eventBus } from '@/main';
import {  ref } from 'vue'
const data = ref('1111')
const changeMitt = () => {
  eventBus.emit('mittEmit',data.value)
}
</script>
<style lang="scss" scoped>
</style>